package flash.display;

extern class NativeMenu extends flash.events.EventDispatcher
{
	static var isSupported(default, null):Bool;
	function addItem(item:flash.display.NativeMenuItem):flash.display.NativeMenuItem;
	function addItemAt(item:flash.display.NativeMenuItem, index:Int):flash.display.NativeMenuItem;
	function containsItem(item:flash.display.NativeMenuItem):Bool;
	function getItemAt(index:Int):flash.display.NativeMenuItem;
	function getItemByName(name:String):flash.display.NativeMenuItem;
	function removeItem(item:flash.display.NativeMenuItem):flash.display.NativeMenuItem;
	function removeItemAt(index:Int):flash.display.NativeMenuItem;
	function removeAllItems():Void;
	function getItemIndex(item:flash.display.NativeMenuItem):Int;
	function setItemIndex(item:flash.display.NativeMenuItem, index:Int):Void;
	function addSubmenuAt(submenu:flash.display.NativeMenu, index:Int, label:String):flash.display.NativeMenuItem;
	function addSubmenu(submenu:flash.display.NativeMenu, label:String):flash.display.NativeMenuItem;
	function display(stage:flash.display.Stage, stageX:Float, stageY:Float):Void;
	function clone():flash.display.NativeMenu;
	function dispatchContextMenuSelect(event:flash.events.MouseEvent):Dynamic;
	var items:Array<flash.display.NativeMenuItem>;
	var parent(default, null):flash.display.NativeMenu;
	var numItems(default, null):Int;
	function new():Void;
}